package com.bigflexlib.core.dependency
{

	import flash.events.EventDispatcher;
	
	import com.bigflexlib.utils.AutoUpdateFlag;



	/**
	 * 
	 * A simple base class for event dispatchers using the dependency
	 * framework.
	 * This class provides little functionality, but enforces consistency
	 * throughout the codebase
	 * 
	 * @author aldo.bucchi@gmail.com
	 * 
	 */
	public class EventDispatcherWithDependenciesBase extends EventDispatcher
	{
		
		
		protected var dh:DependencyHelper;
		
		
		
		public function get dependenciesAutoUpdateFlag( ):AutoUpdateFlag
		{
			return dh.autoUpdateFlag;
		}
		
		
		public function EventDispatcherWithDependenciesBase( )
		{
			dh = new DependencyHelper( this, dependenciesUpdated );
		}
		
		
		
		
		protected function dependenciesUpdated( ):void
		{
		
		}
		
		
		
		
	}
}